package com.project.server.domain.operate;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.project.common.annotation.Excel;
import com.project.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 运营管理资讯动态对象 t_operate_information
 *
 * @author project
 * @date 2021-06-29
 */
public class TOperateInformation extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 资讯动态ID
     */
    private Long informationId;

    /**
     * 图片
     */
    private String informationImg;

    /**
     * 内容
     */
    @Excel(name = "内容")
    private String informationDetails;

    /**
     * 内容简介
     */
    @Excel(name = "内容简介")
    private String informationProfile;

    /**
     * 标题
     */
    @Excel(name = "标题")
    private String informationTitle;

    /**
     * 发布人
     */
    @Excel(name = "发布人")
    private String informationAuthor;

    /**
     * 是否显示0显示 1不显示
     */
    @Excel(name = "是否显示",readConverterExp = "0=显示,1=不显示")
    private String isDisplay;

    /**
     * 是否置顶（1置顶 2不置顶）
     */
    @Excel(name = "是否置顶", readConverterExp = "1=置顶,2=不置顶")
    private String isTop;

    /**
     * 咨讯类型
     */
    @Excel(name = "咨讯类型",readConverterExp = "0=娱乐资讯,1=财经资讯")
    private String informationType;

    /**
     * 发布时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date informationDatetime;

    /**
     * 点击次数
     */
    @Excel(name = "点击次数")
    private Long contentHit;

    /**
     * 删除标志（0代表存在 2代表删除）
     */
    private String delFlag;


    public void setInformationId(Long informationId) {
        this.informationId = informationId;
    }

    public Long getInformationId() {
        return informationId;
    }

    public String getInformationImg() {
        return informationImg;
    }

    public void setInformationImg(String informationImg) {
        this.informationImg = informationImg;
    }

    public void setInformationDetails(String informationDetails) {
        this.informationDetails = informationDetails;
    }

    public String getInformationDetails() {
        return informationDetails;
    }

    public String getInformationProfile() {
        return informationProfile;
    }

    public void setInformationProfile(String informationProfile) {
        this.informationProfile = informationProfile;
    }

    public void setInformationTitle(String informationTitle) {
        this.informationTitle = informationTitle;
    }

    public String getInformationTitle() {
        return informationTitle;
    }

    public void setInformationAuthor(String informationAuthor) {
        this.informationAuthor = informationAuthor;
    }

    public String getInformationAuthor() {
        return informationAuthor;
    }

    public void setIsDisplay(String isDisplay) {
        this.isDisplay = isDisplay;
    }

    public String getIsDisplay() {
        return isDisplay;
    }

    public void setIsTop(String isTop) {
        this.isTop = isTop;
    }

    public String getIsTop() {
        return isTop;
    }

    public void setInformationType(String informationType) {
        this.informationType = informationType;
    }

    public String getInformationType() {
        return informationType;
    }

    public void setInformationDatetime(Date informationDatetime) {
        this.informationDatetime = informationDatetime;
    }

    public Date getInformationDatetime() {
        return informationDatetime;
    }

    public void setContentHit(Long contentHit) {
        this.contentHit = contentHit;
    }

    public Long getContentHit() {
        return contentHit;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getDelFlag() {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("informationId", getInformationId())
                .append("informationImg", getInformationImg())
                .append("informationDetails", getInformationDetails())
                .append("informationProfile", getInformationProfile())
                .append("informationTitle", getInformationTitle())
                .append("informationAuthor", getInformationAuthor())
                .append("isDisplay", getIsDisplay())
                .append("isTop", getIsTop())
                .append("informationType", getInformationType())
                .append("informationDatetime", getInformationDatetime())
                .append("contentHit", getContentHit())
                .append("createBy", getCreateBy())
                .append("delFlag", getDelFlag())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
